<?php
/**
 * multipage component
 * @package common_component_global
 */
load_lib('/sys/component');
/**
 * multipage component
 * @author pandajingjing
 * @package common_component_global
 */
class global_multipagecomponent extends sys_component{

	/**
	 * 使用的样式
	 * @return array
	 */
	static function useSStyle(){
		return array_merge(parent::useSStyle(),array( 
				'/global/multipage.css' 
		));
	}

	/**
	 * 获取UI
	 */
	function getView(){
		$strStyle=$this->getData('STYLE');
		$arrStyle=array();
		if(''==$strStyle){
			$strStyle='str1|strpre|strnext|strn';
		}elseif('all'==$strStyle){
			$strStyle='str1|strpre|strnext|strn|img1|imgpre|imgnext|imgpreg|imgnextg|imgn|strnum|jumpform|jumplist|strtotal';
		}
		$arrStyle=explode('|',$strStyle);
		$this->setData('arrStyle',$arrStyle);
		//str1|strpre|strnext|strn|img1|imgpre|imgnext|imgpreg|imgnextg|imgn|strnum|jumpform|jumplist|strtotal
		return 'multipage';
	}
}